home *** CD-ROM | disk | FTP | other *** search
- Path: news.dfci.harvard.edu!gotd
- From: gotd@jimmy.harvard.edu (Godfrey Degamo)
- Newsgroups: comp.lang.c
- Subject: printing pid_t...
- Date: 20 Feb 1996 17:08:31 GMT
- Organization: Dana-Farber Cancer Institute
- Message-ID: <4gcv6f$6jf@cisunix1.dfci.harvard.edu>
- NNTP-Posting-Host: crunch.dfci.harvard.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hello. Sorry to bother you with this question. I don't know
- if this belongs in comp.unix.programmers or here.
-
- Anyways, I want to read and write pid_t to a text file. The problem
- is how is pid_t type defined? As an int, long, unsigned int or
- unsigned long. (I think that's all the types that pid_t can be...)
- Can I be safe to assume unsigned long and use %lu for printing and
- scanning?
-
- Sorry again for the silly question!
-
- Thanks for your time.
-
- -Godfrey Degamo,
- gotd@jimmy.harvard.edu
-
-